package com.hbut.friend.controller.question;

import com.hbut.common.core.Controller.BaseController;
import com.hbut.common.core.domain.TableDataInfo;
import com.hbut.friend.domain.question.dto.QuestionQueryDTO;
import com.hbut.friend.service.question.IQuestionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/question")
public class QuestionController extends BaseController {
    @Autowired
    private IQuestionService iQuestionService;


    @GetMapping("/semiLogin/list")
    public TableDataInfo list(QuestionQueryDTO questionQueryDTO) {
        return iQuestionService.list(questionQueryDTO);
    }
}
